<template>
  <div class="detail-box">
    <header>
      <el-button @click="addClickStores()">返回</el-button>
    </header>
    <main>
        <el-form :model="state.data" label-width="120px">
               <el-form-item label="商铺名称：">
                 <el-input v-model="state.data.shop_id" />
               </el-form-item>
               <el-form-item label="商铺名字：">
                 <el-input v-model="state.data.shop_name" />
               </el-form-item>
               <el-form-item label="店长：">
                 <el-input v-model="state.data.clark" />
               </el-form-item>
               <el-form-item label="店员：">
                <template #default="scope">
                  <span>{{ state.data.manager}}</span>
                </template>
               </el-form-item>
               <el-form-item label="商铺经度：">
                 <el-input v-model="state.data.lng" />
               </el-form-item>
               <el-form-item label="商铺纬度：">
                 <el-input v-model="state.data.lat" />
               </el-form-item>
               <el-form-item label="地址：">
                 <el-input v-model="state.data.address" />
               </el-form-item>
               <el-form-item label="备注：">
                 <el-input v-model="state.data.remark" />
               </el-form-item>
        </el-form>
    </main>
  </div>
</template>

<script setup>
import router from '@/router';
import {reactive,ref } from 'vue'
import store from '@/store'
    const state = reactive({
      data:[]
    })
    state.data = store.getters.detailList
    console.log(state.data)
  
  function addClickStores(){
    router.push('/shop/list')
  }    
</script>

<style lang="less" scoped>
    header{
    display: block;
    width: 100%;
    height: 80px;
    // background-color: antiquewhite;
    text-align: right;
    line-height: 80px;
    border-bottom:1px solid #ddd ;
    button{
      margin: 12px;
    }
   }
   main{
    height: 100%;
    background-color: #fff;
    padding: 8px 12px;
   }
   .el-form-item{
    margin-left: 24px;
   }
   .slot{
    width:60px;
    height:20px;
    text-align: center;
    line-height: 20px;
    border-radius: 5%;
    background-color: rgb(45, 183, 245);
   }
</style>
